package com.windersgroup.querynumber.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.windersgroup.querynumber.entity.MachineNumberRecord;

@Mapper
public interface MachineNumberMapper {
	/**
	 * 
	 * @param tadayStr 今天的日期
	 * @return
	 */
	List<MachineNumberRecord> findAll(@Param("dateStr") String todayStr);
	int insertNum(MachineNumberRecord rec);
	Integer getMaxNumToday(@Param("dateStr") String dateStr);
	
	/**
	 * 查询柱状图数据
	 * @return
	 */
	List<MachineNumberRecord> findDataForMap();
	
	List<MachineNumberRecord> findDataByUserAndDate(@Param("userIp") String user, @Param("dateStr") String datestr);
	
}
